public class precedence{
  public static void main(String args[]){
    int prefix=0, postfix=0;
    int rs;
    rs=(++prefix)+(++prefix)+(++prefix);
    System.out.println("prefix=" + prefix + " rs=" + rs);
    rs=(postfix++)+(postfix++)+(postfix++);
    System.out.println("postfix=" + postfix + " rs=" + rs);
  }
}